Polyfill It's a thing to do with the browser compatibility issue, the tag that's used, not all browsers support it, for better compatibility, here's the thing. It can provide some alternative ways when the browser does not support, for the
space, the effect will be better. This can be seen through the following screen:
Good responsive image technology should allow us to provide appropriate images for small screens to meet the requirements of small files, fast loading, and improved design.
B .2 solution Selection
The author of this book recommends Picturefill technology. The Picturefill solution balances performance and design issues well,
wide in the viewport, the picture we prepare for the big screen can be displayed, but if we can use more vertical space, the effect will be better. This can be seen through the following screen:
Good responsive image technology should allow us to provide appropriate images for small screens to meet the requirements of small files, fast loading, and improved design.
B .2 solution Selection
The author of this book recommends Picturefill technology. Th
higher and narrower, because the narrow screen has a relatively high vertical upward space.
In the wide view of the phone screen, our pictures, the pictures for the big screen, can be displayed, but if you can make more use of vertical space, the effect will be better. This can be seen through the screenshot below:
A good response-style picture technology should allow us to provide appropriate images for small screens, to meet small files, fast loading, and to improve design requirements.
In the case of high resolution, the picture of the product will inevitably distort.How to make a picture of a product in a high-resolution situation without distortion to provide users with a better experience?I found a solution, and I don't know if it's what you want.The effect of the first slice contrastThe left side is used right after use beforeThe gap is still relatively largeInterested in the small partners can download the source code to try it yourselfHttps://github.com/scottjehl/picture
technique that uses a script to generate a picture. Usually this technique is used to achieve the resolution adaptation of the picture. One example is Picturefill. When you think of "preload" and "response picture"--preload will load the src of the picture in advance, but the response-style picture technology usually has no SRC, or just has a 1x1 alternative picture. There is a conflict between the two technologies. Here are some trade-offs:
D
Responsive patterns
Responsive navigation patterns
Complex navigation patterns for responsive design
Responsinator
How to make a responsive newspaper-like Layout
The state of responsive Web Design
Facing the Challenge: Building a responsive Web Application
This repo contains techniques and concepts to build responsive Hybrid Web applications.
Tables
Responsive Data Tables
Stacktable. js
Footable
Events
Breakpoints. js
Harvey. js
Enquire. j
different resolutions based on different screen sizes. Srcset and picture tags are not implemented, but you can use the Picturefill Putty script
The server uses adaptive image (a large-resolution image is passed in the server and automatically generates a small resolution image for it)
Prevent the picture from exceeding the parent element box max-width:100%;
BACKGROUND-IMG Center-aligned background-positon:center top;
Test the brows
earliest.(Incidentally, I think preloading is the most effective way to improve performance.) Imagine the current browser script download will block other resources, face the page so large number of scripts, page performance will be bad to what extent.Preloaded and responsive picturesThen we go back to Jason Grigsby's tweet:
I have to admit a little. I'm trying to push the responsive picture, and I'm increasingly inclined to encourage developers to use JS to block preloading.
Jaso
(Switch) No harm without IE! Summary of browser compatibility solutions, ie Solutions
Popularity: The compatibility of browsers is often caused by inconsistent definitions of some standards in some browsers (that is, the unique browser. As the saying goes: Without IE, there will be no harm.
Tips: The content is summarized by yourself. errors or bugs may inevitably occur. You are welcome to correct and supplement the content. This post will be updated continuously.Normalize.css
There are differen
on the pageAdvantages: good compatibility, wide application, and it is widely used at Present.Disadvantage: but because the color of the font set single, can only be used to replace the color of a single picture, for the color complex picture, iconfont processing is more difficult
Responsive pictureScene: different terminal for the same picture needs, you can load different pictures according to the terminal to save unnecessary trafficPrinciple: output different images for different terminal
device.
In this way, on small-sized devices, or on large-sized devices, the device can independently take the dominant image to load different image clipping versions.
If you want to provide image versions of different resolutions for a higher-density display, you can add additional file names in the srcset attribute. For example, let's take a look at the Retina code processing segment with a pixel density of 2x:
Current usage of Elements
Now, Chrome,
gracefully downgrade images from WebP to other widely supported image formats, such as Jpeg: type="image/webp" srcset="image-l.webp" media="(min-width: 640px)"> type="image/webp" srcset="image-m.webp" media="(min-width: 320px)"> type="image/webp" srcset="image-s.webp"> srcset="image-l.jpg" media="(min-width: 640px)"> srcset="image-m.jpg" media="(min-width: 320px)"> srcset="image-s.jpg"> alt="Description of the image" src="image-l.jpg">We use Scott Jehl
have to make a basic distinction for screens of different pixel densities. Read this article about Srcset, or use tools such as Picturefill to ensure cross-browser support. If you feel the whole package is overwhelmed, start with the small part. Gradually adjust the Srcset property of the picture element is a good start, in the process, you will gradually see the response of the page more and more reliable.
4, starting from the basic elements of th
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.